package com.getword.mongo;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document(collection = "sequence")
@Setter
@Getter
public class SequenceId {
    @org.springframework.data.annotation.Id
    private String Id;            //主键
    @Field("collName")
    private String collName;    //集合名称
    @Field("seqId")
    private long seqId;            //序列值
}